<template>
  <div>
    <nav-header :headerTitle="'帮助与反馈'" :navBgColor="'#fff'"></nav-header>
    <section class="page">
      <div class="header">
        <div>问题类型</div>
      </div>
      <div class="section">
        <div class="items" @click="goUrl('presentation',{title:'提现问题'})">
          <div class="content">
            <span>提现问题</span>
            <img src="@/assets/images/shop_enter.png" alt />
          </div>
        </div>
        <div class="items" @click="goUrl('presentation',{title:'任务问题'})">
          <div class="content">
            <span>任务问题</span>
            <img src="@/assets/images/shop_enter.png" alt />
          </div>
        </div>
      </div>
      <div class="header">
        <div>用户反馈</div>
      </div>
      <div class="section">
        <div class="items" @click="goUrl('feedback',{})">
          <div class="content">
            <span>反馈建议</span>
            <img src="@/assets/images/shop_enter.png" alt />
          </div>
        </div>
        <!-- 
        <div class="items">
         <a :href="'tel:' + show.phone"> 
          <a @click="telPhone(show.phone)">
            <div class="content">
              <span>客服投诉</span>
              <div>{{show.phone}}</div>
              <img src="@/assets/images/shop_enter.png" alt />
            </div>
          </a>
        </div>
        -->
      </div>
    </section>
  </div>
</template>

<script>
import navHeader from "@/components/NavHeader";
import mixin from "@/utils/mixin";
export default {
  name: "myHelp",
  mixins: [mixin],
  components: {
    navHeader
  },
  data() {
    return {
      show: {
        phone: ""
      }
    };
  },
  created() {},
  mounted() {
    this.init();
  },
  methods: {
    init: function() {
      this.$http.post("soft/getWapConfig", {}).then(
        res => {
          let wapConfig = res.data;
          this.show.phone = wapConfig.comContactTel;
        },
        err => {
          console.log(err);
        }
      );
    },
    telPhone(phone) {
      console.log(phone);
      this.$bridge.callHandler("telPhone", { call: phone }, res => {
        console.log(res);
      });
    }
  }
};
</script>
<style lang="scss" scoped>
.page {
  margin-top: 86px;
  .header {
    padding-left: 32px;
    padding-right: 32px;
    div {
      width: 100%;
      height: 110px;
      line-height: 130px;
      text-align: left;
      font-size: 28px;
      font-family: PingFangSC-Regular;
      font-weight: bold;
      color: rgba(255, 37, 37, 1);
      border-bottom: 2px solid rgba(237, 237, 237, 1);
    }
  }
  .items {
    padding-left: 32px;
    padding-right: 32px;
    .content {
      width: 100%;
      height: 126px;
      position: relative;
      border-bottom: 2px solid rgba(237, 237, 237, 1);
      span {
        font-size: 34px;
        font-family: PingFangSC-Regular;
        color: rgba(48, 49, 51, 1);
        position: absolute;
        left: 0px;
        top: 40px;
      }
      img {
        width: 24px;
        height: 24px;
        position: absolute;
        right: 0px;
        top: 52px;
      }
      div {
        font-size: 28px;
        font-family: PingFangSC-Regular;
        font-weight: 400;
        color: rgba(129, 129, 129, 1);
        position: absolute;
        right: 40px;
        top: 46px;
      }
    }
  }
  .items:active {
    background: rgba(237, 237, 237, 1);
  }
}
</style>
